<?php

namespace App\Api\Account\Models;

use Illuminate\Database\Eloquent\Model;

class BusinessTransaction extends Model
{
    protected $table = 'business_transaction';

    protected $fillable = [
        'activity_id', 'activity_name', 'package_id', 'package_name', 'source', 'source_id', 'total', 'poundage',
        'user_id', 'payment_status', 'type', 'start_balance', 'end_balance', 'arrive_time', 'memo',
    ];

    static $payment_status = [
        '100' => '结算中',
        '200' => '已结算',
    ];

    static $type = [
        '1' => '收入',
        '2' => '支出',
    ];

    static $source = [
        '1' => '报名收费',
        '2' => '报名退费',
        '3' => '短信收费',
        '4' => '短信退费',
        '5' => '提现',
        '6' => '充值',
        '7' => '订房收费',
        '8' => '订房退费',
        '9' => '商品',
        '10' => '商品退费',
    ];
}